﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MP3Ganizer.BusinessObject.DataToPersist
{
    [Serializable]
    public class OverridableData
    {
        private string _overridenName;
        private string _name;
        private string _oldName;

        private OverridableData()
        {

        }
        public OverridableData(string name)
        {
            // TODO: Complete member initialization
            this._name = name;
        }

        public string Name
        {
            get { return _name; }
            set{_name = value;}
        }

        public string OverridenName
        {
            get { return _overridenName; }
            set
            {
                _oldName = _name;
                _overridenName = value;
                _name = _overridenName;
            }
        }

        public string OldName
        {
            get
            {
                return _oldName;
            }
            set 
            {
                _oldName = value;
            }
        }
    }
}
